import 'dart:convert';
import 'package:testlzhu/generated/json/base/json_field.dart';
import 'package:testlzhu/generated/json/rent_bean.g.dart';

@JsonSerializable()
class RentBean {

	int? page;
	int? pagesize;
	List<RentEquipments>? equipments;
  
  RentBean();

  factory RentBean.fromJson(Map<String, dynamic> json) => $RentBeanFromJson(json);

  Map<String, dynamic> toJson() => $RentBeanToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class RentEquipments {

	@JSONField(name: "sort_distance")
	double? sortDistance;
	@JSONField(name: "sort_vip")
	String? sortVip;
	@JSONField(name: "sort_time")
	int? sortTime;
	int? id;
	int? userid;
	int? bduserid;
	String? pic;
	String? title;
	String? productionyear;
	String? address;
	int? salemodel;
	String? rentpricelist;
	String? salepricelist;
	@JSONField(name: "reward_money")
	String? rewardMoney;
	@JSONField(name: "reward_status")
	int? rewardStatus;
	int? groupid;
	String? cat2icon;
	int? distance;
	int? status;
	String? equipmentpic;
  
  RentEquipments();

  factory RentEquipments.fromJson(Map<String, dynamic> json) => $RentEquipmentsFromJson(json);

  Map<String, dynamic> toJson() => $RentEquipmentsToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}